alist=[5,855,65,3,4,6,45,96,52]

for i in range (0,len(alist)-1):
    for j in range (0,len(alist)-1-i):
        if alist[j] > alist[j+1]:
            alist[j], alist[j+1] = alist[j+1], alist[j]
print(alist)
